package com.java.base.exercise.lambda;

import java.util.function.Consumer;

/**
 * @Author RenPu
 * @Date 2023/5/24 15:44
 * @Version 1.0
 * @Description: 定义函数式接口
 **/

@FunctionalInterface
public interface PresentOrElseHandler<T extends Object> {
    void isPresent(Consumer<? super T> action,Runnable runHandler);
}
